#include<stdio.h>
int add(const char* a);
int main(){
    char n[1000];
    scanf("%s",&n);
    const char* list[]={"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};
    char buffer[100];
    sprintf(buffer,"%d",add(n));
    for(int i=0;buffer[i]!='\0';i++){
        int num=buffer[i]-'0';
        if(i!=0){
            printf(" ");
        }
        printf("%s",list[num]);
    }
    return 0;
}
int add(const char *a){
		int sum=0;
        for(int k=0;a[k]!='\0';k++){
            sum+=(a[k]-'0');
        }
    return sum;
    }
